# Contributor: Grigory Kirillov <txgk@bk.ru>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=htmldoc
pkgver=1.9.18
pkgrel=1
pkgdesc="HTML conversion software"
url="https://www.msweet.org/htmldoc/"
arch="all"
license="GPL-2.0-only"
makedepends="cups-dev fltk-dev libpng-dev libjpeg-turbo-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://github.com/michaelrsweet/htmldoc/archive/v$pkgver/htmldoc-$pkgver.tar.gz"
options="!check" # no test suite in source archive

build() {
	./configure \
		--target=$CTARGET \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
529726b719b9175c66a8e0b65902470a1b4faf6c166f3a36295ff58293a1c25324a5e4852f090760d7543f2d546d0d4e58fc70080dbfb0537895956126d0ae00  htmldoc-1.9.18.tar.gz
"
